package cn.com.megan.drawlots.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 配置模板表
 * </p>
 *
 * @author megan
 * @since 2025-05-15 09:10:00
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("templates")
@ApiModel(value = "Templates对象", description = "配置模板表")
public class Templates implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键，模板唯一标识")
    @TableId(value = "template_id", type = IdType.AUTO)
    private Integer templateId;

    @ApiModelProperty("类型(lucky_draw:抽签, lucky_wheel:幸运转盘)")
    @TableField("type")
    private String type;

    @ApiModelProperty("模板标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("模板内容JSON数据")
    @TableField("content")
    private String content;

    @ApiModelProperty("分类(food:美食, game:游戏, etc.)")
    @TableField("category")
    private String category;

    @ApiModelProperty("使用次数")
    @TableField("use_count")
    private Integer useCount;

    @ApiModelProperty("是否系统预设(0:否, 1:是)")
    @TableField("is_system")
    private Boolean isSystem;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
